home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / util / Mac F2C 1.3.sit / Mac F2C 1.3 / Test Project ƒ / test.PPC.make < prev    next >
Text File  |  1995-11-18  |  2KB  |  77 lines

  1. #   File:       test.PPC.make
  2. #   Target:     test
  3. #   Sources:    test.c
  4.  
  5. Makefile = test.PPC.make
  6.  
  7. object_folder = ":objects_PPC:"
  8.  
  9. fsource =    test.f 
  10.             
  11. csource =    F2Cmain.c
  12.  
  13. fobjs     =    {object_folder}'test.f.o'
  14.             
  15. cobjs    =    {object_folder}'F2Cmain.c.o'
  16.  
  17.  
  18. objects =    {fobjs} ∂
  19.             {cobjs}
  20.  
  21. PPCC            =    MWCPPC
  22. PPCCOptions    =    -align power -nosyspath -i "{CIncludes}" -d MPW_CW_F2C -w off
  23. F2C            =    F2C
  24. #F2COptions    =    -f -!i8 -A -P -a -E -ec -!R -r8 -s -w66 -Nq150 -Nx200 -Ns801 -Nc20 -Nn401 -NL200 -NC99 -Nl256 
  25. F2COptions    =    -f -!i8 -A -E -ec -a -!R -r8 -w66
  26. PPCLink        =    MWLinkPPC
  27. PPCLinkOptions    =    -d -c 'MPS ' -t 'MPST' -fastlink off
  28.  
  29. test.PPC ƒƒ {objects} {Makefile}
  30.     {PPCLink} {PPCLinkOptions} ∂
  31.         {OBJECTS} ∂
  32.         "{MWPPCLibraries}"MWStdCRuntime.Lib   ∂
  33.         "{MWPPCLibraries}"StdCLib   ∂
  34.         "{MWPPCLibraries}"InterfaceLib   ∂
  35.         "{MWPPCLibraries}PPCToolLibs.o" ∂
  36.         "{MWPPCLibraries}"MathLib   ∂
  37.         "{F2CLibraries}"libI77.PPC   ∂
  38.         "{F2CLibraries}"libF77.PPC   ∂
  39.         -o test.PPC
  40.  
  41. test.PPC  ƒƒ test.r {Makefile}
  42.     Rez -a -o test.PPC -d APPNAME=∂"test.PPC∂" test.r
  43.  
  44. .f.o    ƒ    .f
  45.     {F2C} {F2COptions} {Default}.f     #compile the fortran and then compile the resulting C file.
  46.     setfile -t "TEXT" -c "MPS " {default}.c
  47.     {PPCC} {default}.c {PPCCOptions} ∂
  48.     -o {targDir}{default}.f.o
  49.  
  50.  
  51. .c.o ƒ .c
  52.     {PPCC} {default}.c {PPCCOptions} ∂
  53.     -o {targDir}{default}.c.o
  54.  
  55.  
  56. # If your FORTRAN code has common blocks add common.c.o to the cobjs list 
  57. # and then this rule should take care of it
  58. common.c    ƒ    {fobjs}
  59.     setfile -t "TEXT" -c "MPS " ?+_com.c
  60.     catenate ?+_com.c > {targDir}{Targ}    #This puts all the common block files into one file for compiling.
  61.                                         #The wild card lets us add common blocks to the fortran code
  62.                                         #without having to change the makefile!  The common block files all
  63.                                         #end with _com.c
  64.  
  65. {objects}    ƒ    {Makefile}        #do a full rebuild if the makefile changes
  66.  
  67. {object_folder}    ƒ :
  68.  
  69. {object_folder}'test.f.o'  ƒ 'test.f'
  70.  
  71. {object_folder}'F2Cmain.c.o'    ƒ 'F2Cmain.c'
  72.  
  73. {object_folder}'common.c.o'    ƒ 'common.c'
  74.  
  75. # makefile end
  76.  
  77.